FLAGS = -Wall -g
INCLUDEPATH = -I/usr/local/ffmpeg1/include/ -I/usr/include
LIBPATH = -L/usr/lib/x86_64-linux-gnu/ -L/usr/local/ffmpeg1/lib
LIBS= -lavcodec    \
      -lpthread    \
      -lavutil     \
      -lm          \
      -ldl         \
      -lswresample \
	  -lavformat -lavutil -lavdevice -lavcodec -lswresample -lavfilter -lswscale  -lx264

exe=yuv2h264


SRC = test5.cpp #$(shell find ./ -name "*.cpp")
LINK_OBJ     = $(SRC:%.cpp=%.o)
  


$(exe): $(LINK_OBJ)  
	g++  $(LINK_OBJ)  $(LIBPATH) $(LIBS) -o $(exe)
$(LINK_OBJ):%.o:%.cpp
	g++ -c -g $(FLAGS) $(INCLUDEPATH) $< -o $@

clean:
	rm -rf ${exe} *.o